# coding= utf-8
def getMaxTwo(a:list)->tuple:
	if len(a)<2:
		return None
	else:
		max0 = max(a[0],a[1])
		max1= min(a[0],a[1])
		for i,v in enumerate(a):
			if i <2:
				continue
			else:
				if v > max0:
					max1 = max0
					max0 = v
				elif v > max1:
					max1 = v
				else:
					pass
		return (max0,max1)

import random
if __name__ == '__main__':
	a = [ random.randint(0,100) for _ in range(10)]
	print(a)
	maxtwo = getMaxTwo(a)
	print(maxtwo)
